package main

import (
	"flag"
	"fmt"

	"github.com/sgoby/opencc"
)

func main() {
	flag.Parse()
	cc, err := opencc.NewOpenCC("t2s")
	if err != nil {
		fmt.Println(err)
		return
	}
	nText, err := cc.ConvertText(`連甍遙接漢，飛觀迥凌虛。`)
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println(nText)
}
